﻿using System;
using System.Windows.Forms;

namespace AdHocReports.DataSourceEditor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Environment.ExitCode = 3;

            string[] args = Environment.GetCommandLineArgs();
            if (args.Length == 2)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainUI(args[1]));
            }
        }
    }
}
